package com.shisfish.library.Impl;

import java.util.List;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IUserInterestInter;
import com.shisfish.library.Model.UserInterest;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class UserInterestImpl implements IUserInterestInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	private IUserInterestInter mapper = (IUserInterestInter) ac.getBean("userInterestMapper");
	
	@Override
	public int insertOne(UserInterest t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<UserInterest> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(UserInterest t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<UserInterest> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<UserInterest> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<UserInterest> selectByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.selectByKey(key);
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<UserInterest> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

}
